#! /bin/bash

echo "check md"
function check_md {
    [ ! -f $1/md.tpr ] && echo "$1 doesn't finish"
}

ligands=$(ls -d job/*_md)

for lig in $ligands; do
    lig_name=${lig%%.*}
    check_md ${lig_name}
done

echo "finish check md"
